﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TestManagerClient.Pages
{
    public partial class TestsPage : Page
    {
        public TestsPage()
        {
            InitializeComponent();

            titleTextBlock.Text = "Testy";

            InformationDisplay.HideNotification(notificationGrid, notificationTextBlock);
            InformationDisplay.HideWarning(warningGrid, warningTextBlock);
            InformationDisplay.HideError(errorGrid, errorTextBlock);
        }

        #region Metody obsługujące przyciski zamknięcia informacji

        private void closeNotificationGridButton_Click(object sender, RoutedEventArgs e)
        {
            InformationDisplay.HideNotification(notificationGrid, notificationTextBlock);
        }

        private void closeWarningGridButton_Click(object sender, RoutedEventArgs e)
        {
            InformationDisplay.HideWarning(warningGrid, warningTextBlock);
        }

        private void closeErrorGridButton_Click(object sender, RoutedEventArgs e)
        {
            InformationDisplay.HideError(errorGrid, errorTextBlock);
        }

        private void TestsManageButton_Click(object sender, RoutedEventArgs e)
        {
            TestsManageButton.Command = NavigationCommands.GoToPage;
            TestsManageButton.CommandParameter = "Pages/TestsManage.xaml";
        }

        private void TestsUseButton_Click(object sender, RoutedEventArgs e)
        {
        }

        #endregion
    }
}
